﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace Aleator.Core
{
    public partial class Melody : ICloneable
    {
        #region Members

        private int m_totalBeats;

        #endregion

        #region Methods

        /// <summary>
        /// Clone this melody
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            Melody newMelody = (Melody)this.MemberwiseClone();

            return newMelody;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Total number of beats in this melody
        /// </summary>
        public int TotalBeats
        {
            get
            {
                return m_totalBeats;
            }
            set
            {
                m_totalBeats = value;
            }
        }

        #endregion
    }
}
